<template>
  <el-container id="app">
    <!-- 顶栏容器 -->
    <el-header>Header</el-header>
    <!-- 侧边栏容器 -->
    <el-container>
      <el-aside width="200px">Aside</el-aside>
      <el-container>
        <!-- 主要区域容器 -->
        <el-main>
          <WebSocket />
          <editor :content="content"/>
          <Video :filePath.sync="videoPath" :header="header" :body="body" />
        </el-main>
      </el-container>
    </el-container>
    <!-- 底栏容器 -->
    <el-footer>Footer</el-footer>
  </el-container>
</template>

<script>
import WebSocket from "@/views/websocket/websocket";
import Video from "@/components/Video/Video";
import Editor from "./components/Tinymce/Tinymce";

export default {
  name: "app",
  components: {
    WebSocket,
    Video,
    editor: Editor
  },
  data() {
    return {
      videoPath: "",
      content: "",
      header: {
        token: "aaaaaaa"
      },
      body: {
        filePath: "/video/path"
      }
    };
  },
  watch: {
    videoPath: function(val) {
      console.log(val);
    },
    content: function(val) {
      console.log(val);
    }
  }
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}
</style>
